package com.kehongborui.fliggy.controller;

import com.kehongborui.fliggy.annotation.LogAction;
//import com.kehongborui.fliggy.annotation.Permission;
//import com.kehongborui.fliggy.enums.Role;
import com.kehongborui.fliggy.annotation.Permission;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

//import static com.kehongborui.fliggy.enums.Role.*;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-08-27
 */
@Controller
@RequestMapping("/home")
public class HomeController {
    @LogAction(action = "进入主页面")
    @Permission
    @GetMapping
    public String home() {
        return "home";
    }
}
